#include <Windows.h>
#include <tchar.h>


BOOL CALLBACK DllMain(HINSTANCE hInstance, UINT nReason, LPVOID pResered)
{
	switch (nReason)
	{
		case DLL_PROCESS_ATTACH:		break;
		case DLL_PROCESS_DETACH:		break;
		case DLL_THREAD_ATTACH:			break;
		case DLL_THREAD_DETACH:			break;
	}

	return TRUE;
}

#define DLLAPI 	extern "C" _declspec(dllexport)

DLLAPI int Add(int nLeft, int nRight)
{
	return (nLeft + nRight);
}

DLLAPI int Sub(int nLeft, int nRight)
{
	return (nLeft - nRight);
}


